All Questions
23 questions
8votes
8answers
3kviews
Can I lessen the use of boolean flag variables in this snippet?
Below snippet is part of a game application's logic and the Update function is called every frame (about 60 times a second). ...
5votes
4answers
253views
Create a little adventure world
I have just recently picked up coding and am trying to improve my coding. I've written this bit of code to create a little adventure world. I haven't completed the code, everything runs how I want it ...
7votes
3answers
668views
I made a guess the number game in Python
I just started programming a week ago. Online tutorials aren't my thing, so I decided to just start projects and learn what I need for the project. My first project is a guess the number game. The ...
1vote
2answers
142views
RPG Map Initialization
I am working on an RPG in Java and I am using a tile-based map. The characters will not be building, so I will not need to store the maps outside of the game, but I feel as if there is a more ...
4votes
1answer
3kviews
A simple Java game where the player guesses the word
It's a simple word guessing game. The game picks a random word - you guess a letter until it's correct, the game automatically starts a new one. Is my code readable? Am I doing anything that could be ...
8votes
1answer
632views
Solving the game WordBrain using brute force
I've been working on a program to solve the game known as WordBrain. In this game, you have to swipe your finger across a square grid of letters and trace out words of given lengths in the given order....
2votes
2answers
683views
Checking whether a bullet has hit a Space Invader
I just (almost) finished a Space-Invaders game in Javascript. I have a few bugs to clear out of the way but meanwhile I wanted to ask how I can improve the method I use to test if one of my 'Bullets' ...
8votes
2answers
466views
Card-fighting game Part 2
This is part 2 of the game I am building. After some good feedback on my first post I decided it was time to post my updated code. The differences in this part are: Updated code after feedback, new ...
5votes
2answers
293views
Movement around a large map
I'm trying to make a small shooter game, where you can only see a small portion of the map around you. The map will also be much larger then the actual JPanel (The panel is 1000 by 1000, the map ...
6votes
2answers
2kviews
Beginner word-guessing game
The aim is to guess a four letter string. Each letter can be tried four times. If the letter cannot be guessed, we go to the next letter until the fourth letter is reached. I looked at my code and ...
12votes
1answer
561views
2D Gravity Simulator-like game
This project is pretty much like a 2D gravity simulator. You click and it creates a circle that attracts other circles. The result of a collision is a bigger circle that is a sum of the masses. If you ...
5votes
2answers
528views
Solver for Jumble puzzle
Here is my first attempt to solve Jumble puzzle: ...
3votes
1answer
392views
Python Command Line Rock Paper Scissors
I'm looking for tips on how to clean up this code and/or make it more efficient. Keep in mind I am a seriously new programmer and if it is too advanced it's likely to go over my head. ...
13votes
4answers
1kviews
Voxel-based chunk manager
I'm creating a voxel-based game and have been working on it for quite a while. I've come to a point where I have to load and unload chunks on the fly. I've created a chunk manager class and it's ...
7votes
4answers
1kviews
Index mechanics for Rock Paper Scissors
I just went through a very easy online example creating a Rock-Paper-Scissors game, but it seemed like it was not a great use of computing power. It seemed like I was writing out results for every ...